Adapt to change proposed at https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4981
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4135>
{
/* At this point, we've finished all layout and painting, but haven't
* actually flushed or swapped */
-
- ClutterBackend *backend = clutter_get_default_backend ();
+ ClutterContext *context = clutter_actor_get_context (CLUTTER_ACTOR (stage));
+ ClutterBackend *backend = clutter_context_get_backend (context);
CoglContext *cogl_context = clutter_backend_get_cogl_context (backend);
CoglDisplay *cogl_display = cogl_context_get_display (cogl_context);
CoglRenderer *cogl_renderer = cogl_display_get_renderer (cogl_display);